package com.scpii.universal.pns.entity;

import java.sql.Timestamp;

import com.scpii.universal.constant.GenericConstants;

/**
 * AppInfo entity. @author MyEclipse Persistence Tools
 */

public class AppInfo implements java.io.Serializable {

	// Fields

	private static final long serialVersionUID = 8841572278733381869L;
	private Long appId;
	private String appKey;
	private Timestamp createDt;
	private Timestamp modifyDt;
	private Long createBy;
	private Long updateBy;
	private String appName;

	// Constructors

	/** default constructor */
	public AppInfo() {
	}

	/** full constructor */
	public AppInfo(String appKey, Timestamp createDt, Timestamp modifyDt,
			Long createBy, Long updateBy, String appName) {
		this.appKey = appKey;
		this.createDt = createDt;
		this.modifyDt = modifyDt;
		this.createBy = createBy;
		this.updateBy = updateBy;
		this.appName = appName;
	}
	
	public AppInfo(Long appId,String appKey,String appName) {
		this.appId = appId + GenericConstants.APP_ID_PRE;
		this.appKey = appKey;
		this.appName = appName;
	}

	// Property accessors

	public Long getAppId() {
		return this.appId;
	}

	public void setAppId(Long appId) {
		this.appId = appId;
	}

	public String getAppKey() {
		return this.appKey;
	}

	public void setAppKey(String appKey) {
		this.appKey = appKey;
	}

	public Timestamp getCreateDt() {
		return this.createDt;
	}

	public void setCreateDt(Timestamp createDt) {
		this.createDt = createDt;
	}

	public Timestamp getModifyDt() {
		return this.modifyDt;
	}

	public void setModifyDt(Timestamp modifyDt) {
		this.modifyDt = modifyDt;
	}

	public Long getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(Long createBy) {
		this.createBy = createBy;
	}

	public Long getUpdateBy() {
		return this.updateBy;
	}

	public void setUpdateBy(Long updateBy) {
		this.updateBy = updateBy;
	}

	public String getAppName() {
		return this.appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

}